import com.basestone.pdlmis.util.*;
import com.basestone.pdlmis.view.user.*;

import flash.display.DisplayObject;

import mx.controls.Alert;
import mx.core.Application;
import mx.managers.PopUpManager;
import mx.core.Application;
import flash.net.navigateToURL;

private function logoutRequest():void
{
    Application.application.frameView.openLoginView();
}


private function openForgetPasswordView(event:Event):void
{
    var view:ForgetPasswordView=ForgetPasswordView(PopUpManager.createPopUp(Application.application as DisplayObject, ForgetPasswordView, true));
    PopUpManager.centerPopUp(view);
    PopUpManager.bringToFront(view);
    view.setVisible(true);
}

private function openPasswordChangeView(event:Event):void
{
    var view:PasswordChangeView=PasswordChangeView(PopUpManager.createPopUp(Application.application as DisplayObject, PasswordChangeView, true));
    PopUpManager.centerPopUp(view);
    PopUpManager.bringToFront(view);
    view.setVisible(true);
}

private function viewStackChange():void
{
    if (topViewStack.selectedChild == this.logoutTopView)
    {
        topViewStack1.selectedIndex=0;
    }
    else
    {
        topViewStack1.selectedIndex=1;
    }
}

private function changeProject():void
{
    Application.application.frameView.openWelcomeView();
}



private function openRegistUserView():void
{
    var view:RegistUserView=RegistUserView(PopUpManager.createPopUp(Application.application as DisplayObject, RegistUserView, true));
    PopUpManager.centerPopUp(view);
    PopUpManager.bringToFront(view);
    view.setVisible(true);
}
